package org.hang.gift.clients;

import org.hang.gift.clients.fallback.GiftFallback;
import org.hang.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Set;

/**
 * 为礼物微服务锁提供的client接口类
 */
@FeignClient(value = "gift-gift",fallback = GiftFallback.class)
public interface GiftClient {

    @GetMapping("/goodsSku/{id}")
    public AjaxResult get(@PathVariable("id")Long id);

    @PostMapping("/goodsSku/list/skuIds")
    public AjaxResult SearchBySkuIds(Set<Long> skuIds);
}
